package com.g2.mydysingle.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单记录表
 * </p>
 *
 * @author admin
 * @since 2021-10-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dl_order_record")
public class DlOrderRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 影院id
     */
    @TableField("cinema_id")
    private Integer cinemaId;

    /**
     * 电影id
     */
    @TableField("movie_id")
    private Integer movieId;

    /**
     * 张数
     */
    @TableField("num")
    private Integer num;

    /**
     * 订单总价
     */
    @TableField("total_price")
    private BigDecimal totalPrice;

    /**
     * 优惠价格
     */
    @TableField("reduce_price")
    private BigDecimal reducePrice;

    /**
     * 实际支付价格
     */
    @TableField("actual_price")
    private BigDecimal actualPrice;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;


}
